package com.partyjoin.common.constant;

import com.partyjoin.common.utils.ServletUtils;

import net.bytebuddy.asm.Advice.This;

/**
 * 通用常量信息
 * 
 * @author 莫东林
 */
public class Constants
{
	
	/**
	 * 账号未激活状态
	 */
	public static final String ACCOUNT_NONACTIVATE = "2";
	
	/**
	 * 账号激活状态
	 */
	public static final String ACCOUNT_AVTIvaTE ="0";
	
	/**
	 * 账号停用状态
	 */
	public static final String ACCOUNT_DISABLE = "1";
	
	/**
	 * 申请人角色编号
	 */
	public static final Long PROPOSER_ROLE_ID = 2l;
	
	/**
	 * 超级管理员角色编号
	 */
	public static final Long SUPER_ADMIN_ROLE_ID = 1l;
	
	/**
	 * 积极分子角色编号
	 */
	public static final Long ACTIVIST_ROLE_ID = 3l;
	
	/**
	 * 发展对象角色编号
	 */
	public static final Long DEVELOPMENT_ROLE_ID = 4l;
	
	/**
	 * 预备党员角色编号
	 */
	public static final Long PREPARE_ROLE_ID = 5l;
	
	/**
	 * 正式党员角色编号
	 */
	public static final Long OFFICIAL_ROLE_ID = 6l;
	
	/**
	 * 支部管理员角色编号
	 */
	public static final Long BRANCH_ADMIN_ROLE_ID = 7l;
	
	/**
	 * 总支管理员角色编号
	 */
	public static final Long MAIN_ADMIN_ROLE_ID = 8l;
	
	/**
	 * 校党委管理员角色编号
	 */
	public static final Long COMMITTEE_ADMIN_ROLE_ID = 9l;
	
	/**
	 * 积极分子名册上传路径
	 */
	public static final String ACTIVIST_ROSTER = getBasePath() + "activistEvolve";
	
	/**
	 * 会议纪要文件上传路径
	 */
	public static final String CONFERENCE_EVENTSUMMARY = getBasePath() + "conference/eventSummary";
	
	/**
	 * 会议投票记录上传路径
	 */
	public static final String CONFERENCE_VOTE = getBasePath() + "conference/Vote";
	
	/**
	 * 入党申请书上传路径
	 */
	public static final String PARTY_APPLICATION = getBasePath() + "partyApplication";
	
	/**
	 * 入党申请书模板
	 */
	public static final String PARTY_APPLICATION_TEMPLATE = getProjectPath() + "入党申请书.docx";
	public static final String PARTY_APPLICATION_NAME = "入党申请书.docx";
	
	/**
	 * 党员推荐入党积极分子登记表上传路径
	 */
	public static final String PARTYMEMBER_RECOMMEND = getBasePath() + "partyMemberRecommend";
	
	/**
	 * 党员推荐入党积极分子登记表模板
	 */
	public static final String PARTYMEMBER_RECOMMEND_TEMPLATE = getProjectPath() + "党员推荐入党积极分子登记表（如通过群团组织推优，此表不填）.docx";
	public static final String PARTYMEMBER_RECOMMEND_NAME = "党员推荐入党积极分子登记表.docx";
	/**
	 * 群团组织推优登记表上传路径
	 */
	public static final String GROUP_RECOMMEND = getBasePath() + "groupRecommend";
	
	/**
	 * 群团组织推优登记表模板
	 */
	public static final String GROUP_RECOMMEND_TEMPLATE = getProjectPath() + "群团组织推荐优秀分子作为入党积极分子登记表.docx";
	public static final String GROUP_RECOMMEND_NAME = "群团组织推优登记表.docx";
	/**
	 * 积极分子备案登记表上传路径
	 */
	public static final String ACTIVIST_RECORDS = getBasePath() + "activistRecords";
	
	/**
	 * 积极分子备案登记表模板
	 */
	public static final String ACTIVIST_RECORDS_TEMPLATE = getProjectPath() + "入党积极分子备案登记表.docx";
	public static final String ACTIVIST_RECORDS_NAME = "积极分子备案登记表.docx";
	/**
	 * 积极分子备案报告上传路径
	 */
	public static final String ACTIVIST_RECORDS_REPORT = getBasePath() + "activistRecordsReport";
	
	/**
	 * 积极分子备案报告模板
	 */
	public static final String ACTIVIST_RECORDS_REPORT_TEMPLATE = getProjectPath() + "入党积极分子备案报告.docx";
	public static final String ACTIVIST_RECORDS_REPORT_NAME = "积极分子备案报告.docx";
	/**
	 * 积极分子培养考察登记表上传路径
	 */
	public static final String ACTIVIST_CULTIVATE = getBasePath() + "activistCultivate";
	
	/**
	 * 积极分子培养考察登记表模板
	 */
	public static final String ACTIVIST_CULTIVATE_TEMPLATE = getProjectPath() + "中国共产党入党积极分子培养考察登记表.docx";
	public static final String ACTIVIST_CULTIVATE_NAME = "积极分子培养考察登记表.docx";
	/**
	 * 与某同志谈话记录上传路径
	 */
	public static final String PARTY_MEMCON = getBasePath() + "partyMemcon";
	
	/**
	 * 与某同志谈话记录模板
	 */
	public static final String PARTY_MEMCON_TEMPLATE = getProjectPath() + "同入党申请人谈话记录.docx";
	public static final String PARTY_MEMCON_NAME = "同入党申请人谈话记录.docx";
	
	/**
	 * 发展对象人选备案登记表上传路径
	 */
	public static final String DEVELOPMENT_RECORDS = getBasePath() + "developmentRecords";
	
	/**
	 * 发展对象人选备案登记表模板
	 */
	public static final String DEVELOPMENT_RECORDS_TEMPLATE = getProjectPath() + "发展对象人选备案登记表.docx";
	public static final String DEVELOPMENT_RECORDS_NAME = "发展对象人选备案登记表.docx";
	
	/**
	 * 发展对象人选公示情况登记表上传路径
	 */
	public static final String DEVELOPMENT_PUBLICITY = getBasePath() + "developmentPublicity";
	
	/**
	 * 发展对象人选公示情况登记表模板
	 */
	public static final String DEVELOPMENT_PUBLICITY_TEMPLATE = getProjectPath() + "发展对象人选的公示.docx";
	public static final String DEVELOPMENT_PUBLICITY_NAME = "发展对象人选的公示.docx";
	
	/**
	 * 发展对象备案报告上传路径
	 */
	public static final String DEVELOPMENT_RECORDS_REPORT = getBasePath() + "developmentRecordsReport";
	
	/**
	 * 发展对象备案报告模板
	 */
	public static final String DEVELOPMENT_RECORDS_REPORT_TEMPLATE = getProjectPath() + "发展对象备案请示.docx";
	public static final String DEVELOPMENT_RECORDS_REPORT_NAME = "发展对象备案请示.docx";
	
	/**
	 * 发展对象短期集中培训情况登记表上传路径
	 */
	public static final String DEVELOPMENT_CULTIVATE = getBasePath() + "developmentCultivate";
	
	/**
	 * 发展对象短期集中培训情况登记表模板
	 */
	public static final String DEVELOPMENT_CULTIVATE_TEMPLATE = getProjectPath() + "发展对象短期集中培训考核鉴定表.docx";
	public static final String DEVELOPMENT_CULTIVATE_NAME = "发展对象短期集中培训考核鉴定表.docx";
	
	/**
	 * 发展对象预审情况登记表上传路径
	 */
	public static final String DEVELOPMENT_INVESTIGATE = getBasePath() + "developmentInvestigate";
	
	/**
	 * 发展对象预审情况登记表模板
	 */
	public static final String DEVELOPMENT_INVESTIGATE_TEMPLATE = getProjectPath() + "发展对象综合政治审查情况登记表.docx";
	public static final String DEVELOPMENT_INVESTIGATE_NAME = "发展对象综合政治审查情况登记表.docx";
	
	/**
	 * 预备党员教育考察登记表上传路径
	 */
	public static final String PREPARE_INVESTIGATE = getBasePath() + "prepareInvestigate";
	
	/**
	 * 预备党员教育考察登记表模板
	 */
	public static final String PREPARE_INVESTIGATE_TEMPLATE = getProjectPath() + "中国共产党预备党员教育考察登记表.docx";
	public static final String PREPARE_INVESTIGATE_NAME = "中国共产党预备党员教育考察登记表.docx";
	
	/**
	 * 预备党员转正公示情况登记表上传路径
	 */
	public static final String PREPARE_TOOFFICIAL_PUBLICITY = getBasePath() + "prepareToofficialPublicity";
	
	/**
	 * 预备党员转正公示情况登记表模板
	 */
	public static final String PREPARE_TOOFFICIAL_PUBLICITY_TEMPLATE = getProjectPath() + "预备党员转正公示情况登记表.docx";
	public static final String PREPARE_TOOFFICIAL_PUBLICITY_NAME = "预备党员转正公示情况登记表.docx";
	
	/**
	 * 发展对象预审的请示上传路径
	 */
	public static final String DEVELOPMENT_REMAINE_REQUEST = getBasePath() + "developmentRemaineRequest";
	
	/**
	 * 发展对象预审的请示模板
	 */
	public static final String DEVELOPMENT_REMAINE_REQUEST_TEMPLATE = getProjectPath() + "发展对象预审的请示.docx";
	public static final String DEVELOPMENT_REMAINE_REQUEST_NAME = "发展对象预审的请示.docx";
	
	/**
	 * 发展对象预审的意见上传路径
	 */
	public static final String DEVELOPMENT_REMAINE_VERDICT = getBasePath() + "developmentRemaineVerdict";
	
	/**
	 * 发展对象预审的意见模板
	 */
	public static final String DEVELOPMENT_REMAINE_VERDICT_TEMPLATE = getProjectPath() + "发展对象预审的意见.docx";
	public static final String DEVELOPMENT_REMAINE_VERDICT_NAME = "发展对象预审的意见.docx";
	
	/**
	 * 审批预备党员的请示上传路径
	 */
	public static final String PREPARE_REMAINE_REQUEST = getBasePath() + "prepareRemaineRequest";
	
	/**
	 * 审批预备党员的请示模板
	 */
	public static final String PREPARE_REMAINE_REQUEST_TEMPLATE = getProjectPath() + "支部大会上报审批预备党员的请示.docx";
	public static final String PREPARE_REMAINE_REQUEST_NAME = "支部大会上报审批预备党员的请示.docx";
	
	/**
	 * 接收预备党员备案的报告上传路径
	 */
	public static final String PREPARE_ACCEPT_REPORT = getBasePath() + "prepareAcceptReport";
	
	/**
	 * 接收预备党员备案的报告模板
	 */
	public static final String PREPARE_ACCEPT_REPORT_TEMPLATE = getProjectPath() + "接收预备党员备案的报告.docx";
	public static final String PREPARE_ACCEPT_REPORT_NAME = "接收预备党员备案的报告.docx";
	
	
	/**
	 * 发展对象政治审查函调材料上传路径
	 */
	public static final String MATERIAL = getBasePath() + "material";

	/**
	 * 发展对象政治审查函调材料模板
	 */
	public static final String MATERIAL_TEMPLATE = getProjectPath() + "发展对象政治审查函调材料.docx";
	public static final String MATERIAL_NAME = "发展对象政治审查函调材料.docx";
	
	/**
	 * 发展对象政治审查回函上传路径
	 */
	public static final String MATERIAL_RETURN = getBasePath() + "materialReturn";
	
	/**
	 * 发展对象政治审查回函模板
	 */
	public static final String MATERIAL_RETURN_TEMPLATE = getProjectPath() + "发展对象政治审查回函.docx";
	public static final String MATERIAL_RETURN_NAME = "发展对象政治审查回函.docx";
	
	/**
	 * 发展对象政治审查介绍信上传路径
	 */
	public static final String INTRODUCE_LETTER = getBasePath() + "introduceLetter";
	
	/**
	 * 政审介绍信模板
	 */
	public static final String INTRODUCE_LETTER_TEMPLATE = getProjectPath() + "发展对象政治审查介绍信.docx";
	public static final String INTRODUCE_LETTER_NAME = "发展对象政治审查介绍信.docx";
	
	/**
	 * 政审调查笔录上传路径
	 */
	public static final String WRITING = getBasePath() + "writing";
	
	/**
	 * 政审调查笔录模板
	 */
	public static final String WRITING_TEMPLATE = getProjectPath() + "发展对象政治审查调查笔录.docx";
	public static final String WRITING_NAME = "发展对象政治审查调查笔录.docx";
	
	/**
	 * 政审情况登记表上传路径
	 */
	public static final String VERDICT_MATERIAL = getBasePath() + "verdictMaterial";
	
	/**
	 * 政审情况登记表模板
	 */
	public static final String VERDICT_MATERIAL_TEMPLATE = getProjectPath() + "发展对象综合政治审查情况登记表.docx";
	public static final String VERDICT_MATERIAL_NAME = "发展对象综合政治审查情况登记表.docx";
	
	/**
	 * 发展对象名册上传路径
	 */
	public static final String DEVELOPMENT_ROSTER = getBasePath() + "developmentRoster";
	
	/**
	 * 预备党员预审名册上传路径
	 */
	public static final String EXAMINE_ROSTER = getBasePath() + "examineRoster";
	
	/**
	 * 预备党员名册上传路径
	 */
	public static final String PREPARE_ROSTER = getBasePath() + "prepareRoster";
	
	/**
	 * 正式党员名册上传路径
	 */
	public static final String OFFICIAL_ROSTER = getBasePath() + "officialRoster";
	
	/**
	 * 思想汇报1-8上传路径
	 */
	public static final String REPORT_FIRST = getBasePath() + "reportFirst";
	public static final String REPORT_SECOND = getBasePath() + "reportSecond";
	public static final String REPORT_THIRD = getBasePath() + "reportThird";
	public static final String REPORT_FOURTH = getBasePath() + "reportFourth";
	public static final String REPORT_FIFTH = getBasePath() + "reportFifth";
	public static final String REPORT_SIXTH = getBasePath() + "reportSixth";
	public static final String REPORT_SEVENTH = getBasePath() + "reportSeventh";
	public static final String REPORT_EIGHTH = getBasePath() + "reportEighth";
	
	/**
	 * 思想汇报模板
	 */
	public static final String REPORT_TEMPLATE = getProjectPath() + "思想汇报.docx";
	public static final String REPORT_NAME = "思想汇报.docx";
	
	/**
	 * 自传上传路径
	 */
	public static final String MEMOIR = getBasePath() + "memoir";
	
	/**
	 * 自传模板
	 */
	public static final String MEMOIR_TEMPLATE = getProjectPath() + "自传.docx";
	public static final String MEMOIR_NAME = "自传.docx";
	
	/**
	 * 入党志愿书上传路径
	 */
	public static final String PARTY_APPLICAITON = getBasePath() + "partyApplicaiton";
	
	/**
	 * 入党志愿书模板
	 */
	public static final String PARTY_APPLICAITON_TEMPLATE = getProjectPath() + "入党志愿书.docx";
	public static final String PARTY_APPLICAITON_NAME = "入党志愿书.docx";
	
	/**
	 * 转正申请书上传路径
	 */
	public static final String OFFICIAL_APPLICATION = getBasePath() + "officialApplication";
	
	/**
	 * 转正申请书模板
	 */
	public static final String OFFICIAL_APPLICATION_TEMPLATE = getProjectPath() + "预备党员转正申请书（样板）.docx";
	public static final String OFFICIAL_APPLICATION_NAME = "预备党员转正申请书（样板）.docx";
	
	/**
	 * 预备党员转正的请示上传路径
	 */
	public static final String PREPARE_TOOFFICIAL_REQUEST = getBasePath() + "prepareToofficialRequest";
	
	/**
	 * 预备党员转正的请示模板
	 */
	public static final String PREPARE_TOOFFICIAL_REQUEST_TEMPLATE = getProjectPath() + "支部大会关于预备党员转正的请示.docx";
	public static final String PREPARE_TOOFFICIAL_REQUEST_NAME = "支部大会关于预备党员转正的请示.docx";
	
	/**
	 * 获取项目真实路径
	 */
	public static String getBasePath(){
//		return ServletUtils.getRequest().getSession().getServletContext().getRealPath("/");
//		String path = ServletUtils.getSession().getServletContext().getRealPath("/WEB-INF/");
		String path = "C:/PartyJoin/";
		return path;
	}
	
	
	/**
	 * 获取资源服务器路径（用于获取下载、上传、预览已经上传的文件的路径）
	 */
	public static String getFilePath(String type){
		String path = "";
		switch(type){
		case "partyApplication":
			path = PARTY_APPLICATION;
			break;
		case "partyMemcon":
			path = PARTY_MEMCON;
			break;
		case "partymemberRecommend":
			path = PARTYMEMBER_RECOMMEND;
			break;
		case "groupRecommend":
			path = GROUP_RECOMMEND;
			break;
		case "activistRecords":
			path = ACTIVIST_RECORDS;
			break;
		case "activistRecordsReport":
			path = ACTIVIST_RECORDS_REPORT;
			break;
		case "activistCultivate":
			path = ACTIVIST_CULTIVATE;
			break;
		case "conferenceEventsummary":
			path = CONFERENCE_EVENTSUMMARY;
			break;
		case "conferenceVote":
			path = CONFERENCE_VOTE;
			break;
		case "activistRoster":
			path = ACTIVIST_ROSTER;
			break;
		case "developmentRecords":
			path = DEVELOPMENT_RECORDS;
			break;
		case "developmentPublicity":
			path = DEVELOPMENT_PUBLICITY;
			break;
		case "developmentRecordsReport":
			path = DEVELOPMENT_RECORDS_REPORT;
			break;
		case "developmentCultivate":
			path = DEVELOPMENT_CULTIVATE;
			break;
		case "material":
			path = MATERIAL;
			break;
		case "materialReturn":
			path = MATERIAL_RETURN;
			break;
		case "introduceLetter":
			path = INTRODUCE_LETTER;
			break;
		case "writing":
			path = WRITING;
			break;
		case "verdictMaterial":
			path = VERDICT_MATERIAL;
			break;
		case "developmentRoster":
			path = DEVELOPMENT_ROSTER;
			break;
		case "examineRoster":
			path = EXAMINE_ROSTER;
			break;
		case "prepareRoster":
			path = PREPARE_ROSTER;
			break;
		case "officialRoster":
			path = OFFICIAL_ROSTER;
			break;
		case "reportFirst":
			path = REPORT_FIRST;
			break;
		case "reportSecond":
			path = REPORT_SECOND;
			break;
		case "reportThird":
			path = REPORT_THIRD;
			break;
		case "reportFourth":
			path = REPORT_FOURTH;
			break;
		case "reportFifth":
			path = REPORT_FIFTH;
			break;
		case "reportSixth":
			path = REPORT_SIXTH;
			break;
		case "reportSeventh":
			path = REPORT_SEVENTH;
			break;
		case "reportEighth":
			path = REPORT_EIGHTH;
			break;
		case "partyApplicaiton":
			path = PARTY_APPLICAITON;
			break;
		case "officialApplication":
			path = OFFICIAL_APPLICATION;
			break;
		case "memoir":
			path = MEMOIR;
			break;
		case "developmentInvestigate":
			path = DEVELOPMENT_INVESTIGATE;
			break;
		case "prepareInvestigate":
			path = PREPARE_INVESTIGATE;
			break;
		case "prepareToofficialPublicity":
			path = PREPARE_TOOFFICIAL_PUBLICITY;
			break;
		case "developmentRemaineRequest":
			path = DEVELOPMENT_REMAINE_REQUEST;
			break;
		case "developmentRemaineVerdict":
			path = DEVELOPMENT_REMAINE_VERDICT;
			break;
		case "prepareRemaineRequest":
			path = PREPARE_REMAINE_REQUEST;
			break;
		case "prepareAcceptReport":
			path = PREPARE_ACCEPT_REPORT;
			break;
		case "prepareToOfficialRequest":
			path = PREPARE_TOOFFICIAL_REQUEST;
			break;
		}
		return path;
	}
	
	/**
	 * 根据文件类型获取文件名称（用于下载时文件命名）
	 */
	public static String getFileName(String type){
		String fileName = "";
		switch(type){
		case "partyApplication":
			fileName = PARTY_APPLICATION_NAME;
			break;
		case "partyMemcon":
			fileName = PARTY_MEMCON_NAME;
			break;
		case "partymemberRecommend":
			fileName = PARTYMEMBER_RECOMMEND_NAME;
			break;
		case "groupRecommend":
			fileName = GROUP_RECOMMEND_NAME;
			break;
		case "activistRecords":
			fileName = ACTIVIST_RECORDS_NAME;
			break;
		case "activistRecordsReport":
			fileName = ACTIVIST_RECORDS_REPORT_NAME;
			break;
		case "activistCultivate":
			fileName = ACTIVIST_CULTIVATE_NAME;
			break;
		case "developmentRecords":
			fileName = DEVELOPMENT_RECORDS_NAME;
			break;
		case "developmentPublicity":
			fileName = DEVELOPMENT_PUBLICITY_NAME;
			break;
		case "developmentRecordsReport":
			fileName = DEVELOPMENT_RECORDS_REPORT_NAME;
			break;
		case "developmentCultivate":
			fileName = DEVELOPMENT_CULTIVATE_NAME;
			break;
		case "material":
			fileName = MATERIAL_NAME;
			break;
		case "materialReturn":
			fileName = MATERIAL_RETURN_NAME;
			break;
		case "introduceLetter":
			fileName = INTRODUCE_LETTER_NAME;
			break;
		case "writing":
			fileName = WRITING_NAME;
			break;
		case "verdictMaterial":
			fileName = VERDICT_MATERIAL_NAME;
			break;
		case "reportFirst":
			fileName = "（一）" + REPORT_NAME;
			break;
		case "reportSecond":
			fileName = "（二）" + REPORT_NAME;
			break;
		case "reportThird":
			fileName = "（三）" + REPORT_NAME;
			break;
		case "reportFourth":
			fileName = "（四）" + REPORT_NAME;
			break;
		case "reportFifth":
			fileName = "（五）" + REPORT_NAME;
			break;
		case "reportSixth":
			fileName = "（六）" + REPORT_NAME;
			break;
		case "reportSeventh":
			fileName = "（七）" + REPORT_NAME;
			break;
		case "reportEighth":
			fileName = "（八）" + REPORT_NAME;
			break;
		case "partyApplicaiton":
			fileName = PARTY_APPLICAITON_NAME;
			break;
		case "officialApplication":
			fileName = OFFICIAL_APPLICATION_NAME;
			break;
		case "memoir":
			fileName = MEMOIR_NAME;
			break;
		case "developmentInvestigate":
			fileName = DEVELOPMENT_INVESTIGATE_NAME;
			break;
		case "prepareInvestigate":
			fileName = PREPARE_INVESTIGATE_NAME;
			break;
		case "prepareToofficialPublicity":
			fileName = PREPARE_TOOFFICIAL_PUBLICITY_NAME;
			break;
		case "developmentRemaineRequest":
			fileName = DEVELOPMENT_REMAINE_REQUEST_NAME;
			break;
		case "developmentRemaineVerdict":
			fileName = DEVELOPMENT_REMAINE_VERDICT_NAME;
			break;
		case "prepareRemaineRequest":
			fileName = PREPARE_REMAINE_REQUEST_NAME;
			break;
		case "prepareAcceptReport":
			fileName = PREPARE_ACCEPT_REPORT_NAME;
			break;
		case "prepareToOfficialRequest":
			fileName = PREPARE_TOOFFICIAL_REQUEST_NAME;
			break;
		}
		return fileName;
	}
	
	/**
	 * 获取工程文件路径（获取预览材料模板的路径）此方法不包含会议材料模板
	 */
	public static String getFilePaths(String type){
		String path = "";
		switch(type){
		case "partyApplication":
			path = PARTY_APPLICATION_TEMPLATE;
			break;
		case "partyMemcon":
			path = PARTY_MEMCON_TEMPLATE;
			break;
		case "partymemberRecommend":
			path = PARTYMEMBER_RECOMMEND_TEMPLATE;
			break;
		case "groupRecommend":
			path = GROUP_RECOMMEND_TEMPLATE;
			break;
		case "activistRecords":
			path = ACTIVIST_RECORDS_TEMPLATE;
			break;
		case "activistRecordsReport":
			path = ACTIVIST_RECORDS_REPORT_TEMPLATE;
			break;
		case "activistCultivate":
			path = ACTIVIST_CULTIVATE_TEMPLATE;
			break;
		case "developmentRecords":
			path = DEVELOPMENT_RECORDS_TEMPLATE;
			break;
		case "developmentPublicity":
			path = DEVELOPMENT_PUBLICITY_TEMPLATE;
			break;
		case "developmentRecordsReport":
			path = DEVELOPMENT_RECORDS_REPORT_TEMPLATE;
			break;
		case "developmentCultivate":
			path = DEVELOPMENT_CULTIVATE_TEMPLATE;
			break;
		case "material":
			path = MATERIAL_TEMPLATE;
			break;
		case "materialReturn":
			path = MATERIAL_RETURN_TEMPLATE;
			break;
		case "introduceLetter":
			path = INTRODUCE_LETTER_TEMPLATE;
			break;
		case "writing":
			path = WRITING_TEMPLATE;
			break;
		case "verdictMaterial":
			path = VERDICT_MATERIAL_TEMPLATE;
			break;
		case "reportFirst":
			path = REPORT_TEMPLATE;
			break;
		case "reportSecond":
			path = REPORT_TEMPLATE;
			break;
		case "reportThird":
			path = REPORT_TEMPLATE;
			break;
		case "reportFourth":
			path = REPORT_TEMPLATE;
			break;
		case "reportFifth":
			path = REPORT_TEMPLATE;
			break;
		case "reportSixth":
			path = REPORT_TEMPLATE;
			break;
		case "reportSeventh":
			path = REPORT_TEMPLATE;
			break;
		case "reportEighth":
			path = REPORT_TEMPLATE;
			break;
		case "partyApplicaiton":
			path = PARTY_APPLICAITON_TEMPLATE;
			break;
		case "officialApplication":
			path = OFFICIAL_APPLICATION_TEMPLATE;
			break;
		case "memoir":
			path = MEMOIR_TEMPLATE;
			break;
		case "developmentInvestigate":
			path = DEVELOPMENT_INVESTIGATE_TEMPLATE;
			break;
		case "prepareInvestigate":
			path = PREPARE_INVESTIGATE_TEMPLATE;
			break;
		case "prepareToofficialPublicity":
			path = PREPARE_TOOFFICIAL_PUBLICITY_TEMPLATE;
			break;
		case "developmentRemaineRequest":
			path = DEVELOPMENT_REMAINE_REQUEST_TEMPLATE;
			break;
		case "developmentRemaineVerdict":
			path = DEVELOPMENT_REMAINE_VERDICT_TEMPLATE;
			break;
		case "prepareRemaineRequest":
			path = PREPARE_REMAINE_REQUEST_TEMPLATE;
			break;
		case "prepareAcceptReport":
			path = PREPARE_ACCEPT_REPORT_TEMPLATE;
			break;
		case "prepareToOfficialRequest":
			path = PREPARE_TOOFFICIAL_REQUEST_TEMPLATE;
			break;
		}
		return path;
	}

    void getCla(){
    	System.out.println(this.getClass().getClassLoader().getResource("").getPath());
    	System.out.println("卧槽啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊");
    }
	
	/**
	 * 获取工程路径里的模板材料地址
	 */
	public static String getProjectPath(){
		System.out.println("卧槽啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊");
		System.out.println(System.getProperty("user.dir") + "/src/main/resources/materials/");
		Constants c = new Constants();
		c.getCla();
		return System.getProperty("user.dir") + "/src/main/resources/materials/";
	}
	
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 自动去除表前缀
     */
    public static String AUTO_REOMVE_PRE = "true";

    /**
     * 当前记录起始索引
     */
    public static String PAGENUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static String PAGESIZE = "pageSize";

    /**
     * 排序列
     */
    public static String ORDERBYCOLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static String ISASC = "isAsc";

    
    /**
	 *  根据民族id传回民族名称
	 */
	  public static String getNationName(String id) {

		  switch (id) {

			  case "0":
				  return "壮族";

			  case "1":
				  return "汉族";

			  case "2":
				  return "满族";

			  case "3":
				  return "回族";

			  case "4":
				  return "苗族";

			  case "5":
				  return "维吾尔族";

			  case "6":
				  return "土家族";

			  case "7":
				  return "彝族";

			  case "8":
				  return "蒙古族";

			  case "9":
				  return "藏族";

			  case "10":
				  return "布依族";

			  case "11":
				  return "藏侗族族";

			  case "12":
				  return "瑶族";

			  case "13":
				  return "朝鲜族";

			  case "14":
				  return "白族";

			  case "15":
				  return "哈尼族";

			  case "16":
				  return "哈萨克族";

			  case "17":
				  return "黎族";

			  case "18":
				  return "傣族";

			  case "19":
				  return "畲族";

			  case "20":
				  return "傈僳族";

			  case "21":
				  return "仡佬族";

			  case "22":
				  return "东乡族";

			  case "23":
				  return "高山族";

			  case "24":
				  return "拉祜族";

			  case "25":
				  return "水族";

			  case "26":
				  return "佤族";

			  case "27":
				  return "纳西族";

			  case "28":
				  return "羌族";

			  case "29":
				  return "土族";

			  case "30":
				  return "仫佬族";

			  case "31":
				  return "锡伯族";

			  case "32":
				  return "柯尔克孜族";

			  case "33":
				  return "达斡尔族";

			  case "34":
				  return "景颇族";

			  case "35":
				  return "毛南族";

			  case "36":
				  return "撒拉族";

			  case "37":
				  return "布朗族";

			  case "38":
				  return "塔吉克族";

			  case "39":
				  return "阿昌族";

			  case "40":
				  return "普米族";

			  case "41":
				  return "鄂温克族";

			  case "42":
				  return "怒族";

			  case "43":
				  return "京族";

			  case "44":
				  return "基诺族";

			  case "45":
				  return "德昂族";

			  case "46":
				  return "保安族";

			  case "47":
				  return "俄罗斯族";

			  case "48":
				  return "裕固族";

			  case "49":
				  return "乌孜别克族";

			  case "50":
				  return "门巴族";

			  case "51":
				  return "鄂伦春族";

			  case "52":
				  return "独龙族";

			  case "53":
				  return "塔塔尔族";

			  case "54":
				  return "赫哲族";

			  case "55":
				  return "珞巴族";
		  }
		  return null;
	  }

	/**
	 * 根据id返回文化水平
	 *
	 */
	public static String getEducationLevel(String id){

		switch(id){

			case"0":
				return"中专";

			case"1":
				return"大专";

			case"2":
				return"本科";

			case"3":
				return"硕士研究生";

			case"4":
				return"博士生";
		}
		    return null;
	}



	
}
